﻿@model BB.Apostas.ViewModels.RegistoViewModel
@if (Model.competicoes.Count() > 0)
{   
    <ul data-role="listview">
        <li data-role="list-divider">Competicoes</li>
        @foreach (var item in Model.competicoes)
        {
            <li>
                <p>
                    <strong>
                        @Html.DisplayFor(modelItem => item.Name)
                    </strong>
                </p>
                <p>
                    <strong>
                        @Html.ActionLink("Registar", "Registar", new { id = item.Id })
                    </strong>
                </p>
            </li>
        }
    </ul>
}
else
{
    <h3>Nao ha competicoes para registo.
    </h3>
}

@if (Model.registos.Count() > 0)
{
    
  
    
    <ul data-role="listview">
        <li data-role="list-divider">Competicoes Registadas</li>
        @foreach (var item in Model.registos)
        {
            <li>
                <p>
                    <strong>
                        @Html.DisplayFor(modelItem => item.Competicao.Name)
                    </strong>
                </p>
                <p>
                    <br />
                    @Html.CheckBoxFor(modelItem => item.Active)
                    <br />
                </p>
                <p>
                    <strong>
                        @Html.ActionLink("Eliminar", "Eliminar", new { id = item.Id }) |
                        @Html.ActionLink("Activar", "Activar", new { id = item.Id }) |
                        @Html.ActionLink("Desactivar", "Desactivar", new { id = item.Id })
                    </strong>
                </p>
            </li>
        }
    </ul>@*
    
    <div data-role="fieldcontain">
        <fieldset data-role="controlgroup">
            <legend>Agree to the terms:</legend>
            <input type="checkbox" name="checkbox-1" id="checkbox-1" class="custom" />
            <label for="checkbox-1">I agree</label>
            @Html.ActionLink("Eliminar", "Eliminar") |
                        @Html.ActionLink("Activar", "Activar") |
                        @Html.ActionLink("Desactivar", "Desactivar")
        </fieldset>
    </div>*@
}
else
{
    <h3>Nao ha competicoes registadas.
    </h3>
}
